//
//  QSVisitInterFace.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/4/2.
//  Copyright © 2020 DingC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResponseMessage.h"
#import "QSVisitHeaderInfoModel.h"
#import "QSVisitHomeListModel.h"
#import "QSVisitProblemModel.h"
#import "QSVisitInfoCompanyListModel.h"
#import "QSProblemCompanyListModel.h"
#import "QSBindingEnterprisesModel.h"
#import "QSUserHomeItemModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface QSVisitInterFace : NSObject
/**
* @brief 获取走访头部展示信息
*/
+ (void)getApiVisitDetail:(void (^)(ResponseMessage *rspStatusAndMessage, QSVisitHeaderInfoModel *result))block;

/**
* @brief 获取走访记录List
 *level 前方法得到的级别
 *epId 组长——如果切换了组员
 *egId 领导——如果切换了组
 *startTime 开始时间 -时间戳
 *endTime 结束时间
 *companyKey 服务员——如果切换了公司
*/
+ (void)getVisitListWithPageIndex:(NSInteger)pageIndex
                              Level:(NSInteger)level
                            Epid:(NSInteger)epId
                            Egid:(NSInteger)egId
                      CompanyName:(NSString *)companyName
                        StartTime:(NSString *)startTime
                          EndTime:(NSString *)endTime
                              AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSVisitHomeListModel *result))block;

/**
* @brief 新增走访记录
 *evCompanyKey 企业ID
 *evType 走访类型
 *evTime 走访时间
 *evFollow 跟进联系人
 *evRemark 备注
 *evPic 图片或视频url
 *evSignId 签到ID
 *problemList 问题列表
*/
+ (void)postAddNewVisitWithEvCompanyKey:(NSString *)evCompanyKey
                              EvType:(NSString *)evType
                            EvTime:(NSString *)evTime
                            EvFollow:(NSString *)evFollow
                      EvRemark:(NSString *)evRemark
                        EvPic:(NSString *)evPic
                          EvSignId:(NSString *)evSignId
                            ProblemList:(NSArray *)problemList
                              AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSDictionary *result))block;


/**
* @brief 获取走访记录表里的问题数据
 *eviD 前方法得到的问题id
*/
- (void)getVisitProblemListWithEvId:(NSString *)evid
                           AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSArray *result))block;
/**
* @brief 根据切换小组成员/小组切换企业筛查条件
 *epId 小组取组员的id
 *egId领导取小组的id
*/
+ (void)getVisitCompanysWithEpId:(NSString *)epId
                            EgId:(NSString *)egId
                        AndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSArray *result))block;

/**
 * @brief 获取公司列表 （模糊搜索）
 *CompanyName 公司名称
 *epAllCompany  是否展示全部企业
*/
+ (void)getApiSearchCompanyWithPageIndex:(NSInteger )pageIndex
                            EpAllCompany:(NSString* )epAllCompany
                            CompanyName:(NSString *)companyName
                               andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSBindingEnterprisesModel *result))block;


/**
 * @brief Visit 返回头部item
 */
+ (void)getVisitHeaderItemAndBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSUserHomeItemModel *result))block;


@end

NS_ASSUME_NONNULL_END
